<script setup lang="ts">
interface NewsInterface {
  id: number,
  title: string,
}

defineProps({
  list: {type: Array<NewsInterface>, required: true},
})
</script>

<template>
  <ul>
    <li v-for="(item,index) of list" :key="index">{{ item.title }}</li>
  </ul>
</template>

<style scoped>

</style>